<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="..\..\node_modules\vue\dist\vue.js"></script>
</head>
<body>

<div id="app">

    <test-component v-bind:todo="123">
        slot {{cc}} {{todo}}
    </test-component>

</div>

</body>
<script type="application/javascript">
    Vue.component(
        'test-component',
        {
            template:`<p>
            <br>
            <slot></slot> {{cc}} </p>
            `,
            props: ['todo'],
            data:function(){
              return {
                  cc:"abc"
              };
            }
        }
    );

    var app = new Vue({
        el: '#app',
        data: {
            cc:'cccccccccccccccccccc'
        }
    });

</script>
</html>
